<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Add Attraction</title>
</h:head>
<h:body>
	<h:form>
		<p:panel header="Registration Form">
			<h:panelGrid columns="3" id="regGrid">
				


				<h:outputLabel for="city">city:</h:outputLabel>
				<p:inputText id="city" value="#{AttractionBean.attractionDTO.city}" />
				<p:message for="city" />

				<h:outputLabel for="description">description:</h:outputLabel>
				<p:inputText id="description" value="#{AttractionBean.attractionDTO.description}" />
				<p:message for="description" />
				
				<h:outputLabel for="price">Price:</h:outputLabel>
				<p:inputText id="price" value="#{AttractionBean.attractionDTO.price}" />
				<p:message for="price" />
				
				<h:outputLabel for="spots">Spots:</h:outputLabel>
				<p:inputText id="spots" value="#{AttractionBean.attractionDTO.spots}" />
				<p:message for="spots" />
				
				<h:outputLabel for="visibility">Visibility:</h:outputLabel>
				<p:inputText id="visibility" value="#{AttractionBean.attractionDTO.visibility}">
                <f:validator validatorId="validateBoolean" />
                </p:inputText>
                <p:message for="visibility" />
			
				
				
			</h:panelGrid>
			<p:commandButton value="Add" update="regGrid"
				action="#{AttractionBean.register()}" />
		</p:panel>
	</h:form>
	
	<h:link outcome="/admin/index" value="HomePage" /> <br />
</h:body>
</html>